
using Infrastructure.Extensions;
using ZR.Model.Enums;

namespace ZR.Model.BaseFrame.Entity
{
    /// <summary>
    /// 角色
    /// </summary>
    public class RoleEntityBase
    {
        /// <summary>
        /// 角色标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public long RoleId { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }= string.Empty;

        /// <summary>
        /// 角色类型
        /// </summary>
        public string RoleTypeCode { get; set; }= string.Empty;

        /// <summary>
        /// 是否超级管理员
        /// </summary>
        public bool IsSuperAdmin { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string StateCode { get; set; } = DataStateEnum.Enabled.ToEnumCode();

        /// <summary>
        /// 角色描述
        /// </summary>
        public string RoleDesc { get; set; }= string.Empty;

        /// <summary>
        /// 公司标识
        /// </summary>
        public long CompanyId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Creater { get; set; }= string.Empty;

        /// <summary>
        /// 创建人标识
        /// </summary>
        public long CreaterId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string Modifier { get; set; }

        /// <summary>
        /// 修改人标识
        /// </summary>
        public long? ModifierId { get; set; }

    }
}